package com.healthbox.appointmentservice.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @author pengpeng
 * @date 2022/5/12
 */
@Component
@RefreshScope
@Data
public class AppointmentConfig {

    @Value("${health_box.appointment.author}")
    private String author;
    @Value("${health_box.appointment.message}")
    private String message;
    @Value("${health_box.appointment.tag}")
    private String tag;

    /**
     * redis appointment number expire time:
     * minutes
     */
    @Value("${health_box.appointment.redisExpireTime}")
    private Integer expireTime;
    /**
     * appointment_count redis缓存的key前缀
     */
    @Value("${health_box.appointment.countPrefix}")
    private String prefix;
}
